// src/main/java/com/yourcompany/config/FileWatcherProperties.java
package com.lanzuo.pana.adapter.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author eric
 * 文件监听参数
 */
@Data
@Component
@ConfigurationProperties(prefix = "file-watcher")
public class FileWatcherProperties {
    
    private String directory = "D://MES//Result";
    private String fileExtension = ".TXT";
    private boolean enableWatch = true;
    private int stabilityCheckInterval = 300;   // ms
    private int stabilityCheckAttempts = 3;
    private int readRetryCount = 3;
    private long readRetryDelayMs = 200;
}